<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<title>流程新增页面</title>
<script>
	$(function(){
		fn.resetForm();
		fn.onBeforeSubmitForm = function(){
			var activeUserIds = [];
			var items = $('input[name=activeUserNames]');
			$.each(items, function (index,item) {
				activeUserIds.push($(item).val());
			});
			activeUserIds = activeUserIds.join(',');
			$("input[name=activeUserIds]").val(activeUserIds);
		}
	});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.jzzn.pojo.Flow/newAdd" >
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Flow" />
		 <input type="hidden" name="id" value="" />
		 <input type="hidden" name="parentId" />
		 <input type="hidden" name="activeUserIds" />
		 
		 <div style="margin-bottom:20px">
		  	<input class="easyui-textbox" name="pflowName" style="width:240px;" data-options="label:'流程模板:',readonly:true,validType:'maxLen[20]'" />
		 </div>
		 <div style="margin-bottom:20px">
		  	<input class="easyui-textbox" name="flowName" style="width:240px;" data-options="label:'流程名称:',required:true,validType:'maxLen[20]'" />
		  	<input class="easyui-textbox" name="flowCode" style="width:240px;" data-options="label:'流程编码:',required:false,validType:'maxLen[5]'" />
		 </div>
		 <div style="margin-bottom:20px">
		  	<input class="easyui-numberbox" name="flowOrder" style="width:240px;" data-options="label:'流程排序:',required:false,validType:'digits'" />
		  	<select class="easyui-combotree" id="activeUserNames" name="activeUserNames" style="width:240px;" data-options="label:'节点处理人:',multiple:true " 
			 url="/console/user/combotree?textField=nickName" >
			</select>
		 </div>
		</form>
	</div>
</body>
</html>